package com.Multi_threaded;

/**
 * 继承多线程二：实现Runnable接口
 */
public class Test4 {
    public static void main(String[] args) {
        //创建的是任务对象
        Runnable target=new Test3();
        new Thread(target).start();
        for (int i = 0; i < 5; i++) {
            System.out.println("Test4:"+i);
        }
    }
}
